#include "passivechallengedialog.h"

PassiveChallengeDialog::PassiveChallengeDialog(QWidget *parent) : QDialog(parent),ui(new Ui::PassiveChallengeDialog){
    ui->setupUi(this);
    setWindowTitle("Wanna play?");
    connect(ui->acceptButton,SIGNAL(clicked()),this,SIGNAL(accepted()));
    connect(ui->declineButton,SIGNAL(clicked()),this,SIGNAL(declined()));
}

PassiveChallengeDialog::~PassiveChallengeDialog(){
    delete ui;
}

void PassiveChallengeDialog::setChallenger(QString name){
    ui->messageLabel->setText("<h2>"+name+" Has Challenged You</h2>");
}
